home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Dust Sand / metacity-1 / metacity-theme-1.xml < prev   
Encoding:
Extensible Markup Language  |  2009-03-11  |  17.4 KB  |  372 lines

  1. <?xml version="1.0"?>
  2.  
  3. <metacity_theme>
  4. <info>
  5.     <name>Dust Sand</name>
  6.     <author>Kido Mariano, Rico Sta. Cruz</author>
  7.     <copyright>GPL</copyright>
  8.     <date>Jul 28, 2008</date>
  9.     <description>Metacity theme</description>
  10. </info>
  11.  
  12.  
  13. <!--
  14.     General window layout (geometric stuff)
  15. -->
  16. <frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true">
  17.     <distance name="left_width" value="1"/>
  18.     <distance name="right_width" value="1"/>
  19.     <distance name="bottom_height" value="4"/>
  20.     <distance name="left_titlebar_edge" value="2"/>
  21.     <distance name="right_titlebar_edge" value="4"/>
  22.     <distance name="button_width" value="20"/>
  23.     <distance name="button_height" value="20"/>
  24.     <distance name="title_vertical_pad" value="1"/>
  25.     <border name="title_border" left="2" right="2" top="3" bottom="0"/>
  26.     <border name="button_border" left="0" right="0" top="2" bottom="1"/>
  27. </frame_geometry>
  28.  
  29. <frame_geometry name="frame_geometry_abnormal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
  30.     <distance name="left_width" value="0"/>
  31.     <distance name="right_width" value="0"/>
  32.     <distance name="bottom_height" value="0"/>
  33.     <distance name="left_titlebar_edge" value="1"/>
  34.     <distance name="right_titlebar_edge" value="2"/>
  35.     <distance name="button_width" value="20"/>
  36.     <distance name="button_height" value="20"/>
  37.     <distance name="title_vertical_pad" value="0"/>
  38.     <border name="title_border" left="0" right="0" top="3" bottom="0"/>
  39.     <border name="button_border" left="0" right="0" top="2" bottom="1"/>
  40. </frame_geometry>
  41.  
  42.  
  43.  
  44. <!--
  45.     Window Title
  46. -->
  47.  
  48. <draw_ops name="draw_title_text_normal">
  49.     <title x="1" y="(height - title_height) / 2 + 1" color="#D7D3CD"/>
  50.     <title x="0" y="(height - title_height) / 2" color="#323232"/>
  51. </draw_ops>
  52.  
  53. <draw_ops name="draw_title_text_inactive">
  54.     <title x="0" y="(height - title_height) / 2" color="#727262"/>
  55. </draw_ops>
  56.  
  57. <!--
  58.     Construct titlebar from rectangles instead so we can pick up the GTK theme
  59. -->
  60.  
  61. <draw_ops name="draw_title">
  62.     <!-- Background gradient -->
  63.     <gradient type="vertical" x="0" y="0" width="width+9" height="height">
  64.         <color value="#ccc8c1" />
  65.         <color value="#c1bdb5" />
  66.     </gradient>
  67.     
  68.     <!-- Topmost dark line -->
  69.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
  70.     
  71.     <!-- Darkening of the left arch -->
  72.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="4" y1="1" y2="1"/>
  73.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="2" y1="2" y2="2"/>
  74.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="3" y2="3"/>
  75.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="4" y2="4"/>
  76.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="0" y1="5" y2="30"/>
  77.     
  78.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-5" x2="width" y1="1" y2="1"/>
  79.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-3" x2="width" y1="2" y2="2"/>
  80.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="3" y2="3"/>
  81.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="4" y2="4"/>
  82.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-1" x2="width" y1="5" y2="90"/>
  83.     
  84.     <!-- Top highlight -->
  85.     <!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
  86.     <tint color="#ffffff" alpha="0.55" x="5" y="1" width="width - 10" height="1"/> 
  87.     <tint color="#ffffff" alpha="0.15" x="5" y="2" width="width - 10" height="1"/> 
  88.     
  89. </draw_ops>
  90.  
  91. <draw_ops name="draw_title_inactive">
  92.     <!-- Background gradient -->
  93.     <gradient type="vertical" x="0" y="0" width="width+9" height="height">
  94.         <color value="#ccc8c1" />
  95.         <color value="#c1bdb5" />
  96.     </gradient>
  97.     
  98.     <!-- Topmost dark line -->
  99.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
  100.     
  101.     <!-- Darkening of the left arch -->
  102.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="4" y1="1" y2="1"/>
  103.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="2" y1="2" y2="2"/>
  104.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="3" y2="3"/>
  105.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="4" y2="4"/>
  106.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="0" y1="5" y2="30"/>
  107.     
  108.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-5" x2="width" y1="1" y2="1"/>
  109.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-3" x2="width" y1="2" y2="2"/>
  110.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="3" y2="3"/>
  111.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="4" y2="4"/>
  112.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="width-1" x2="width" y1="5" y2="90"/>
  113.     
  114.     <!-- Top highlight -->
  115.     <!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
  116.     <tint color="#ffffff" alpha="0.55" x="5" y="1" width="width - 10" height="1"/> 
  117.     <tint color="#ffffff" alpha="0.15" x="5" y="2" width="width - 10" height="1"/> 
  118.     
  119. </draw_ops>
  120.  
  121. <draw_ops name="draw_title_maximized">
  122.     <!-- Background gradient -->
  123.     <gradient type="vertical" x="0" y="0" width="width+9" height="height">
  124.         <color value="#ccc8c1" />
  125.         <color value="#c1bdb5" />
  126.     </gradient>
  127.     
  128.     <!-- Topmost dark line -->
  129.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
  130.     
  131.     <!-- Top highlight -->
  132.     <!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
  133.     <tint color="#ffffff" alpha="0.55" x="0" y="1" width="width" height="1"/> 
  134.     <tint color="#ffffff" alpha="0.15" x="0" y="2" width="width" height="1"/> 
  135. </draw_ops>
  136.  
  137. <draw_ops name="draw_title_maximized_inactive">
  138.     <!-- Background gradient -->
  139.     <gradient type="vertical" x="0" y="0" width="width+9" height="height">
  140.         <color value="#ccc8c1" />
  141.         <color value="#c1bdb5" />
  142.     </gradient>
  143.     
  144.     <!-- Topmost dark line -->
  145.     <line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
  146.     
  147.     <!-- Top highlight -->
  148.     <!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
  149.     <tint color="#ffffff" alpha="0.55" x="0" y="1" width="width" height="1"/> 
  150.     <tint color="#ffffff" alpha="0.15" x="0" y="2" width="width" height="1"/> 
  151. </draw_ops>
  152.  
  153. <!--
  154.     The frame around windows
  155. -->
  156.  
  157. <draw_ops name="draw_frame">
  158.     <rectangle color="shade/gtk:bg[NORMAL]/0.74" x="0" y="0" width="width" height="height" filled="true"/>
  159. </draw_ops>
  160.  
  161. <!--Borderless only: make bottom border less apparent. We can do this now since our statusbars are light.-->
  162. <draw_ops name="bottom_edge">
  163.     <rectangle color="shade/gtk:bg[NORMAL]/0.25" x="0" y="0" width="width" height="height" filled="true"/>
  164.     <gradient type="vertical" x="1" y="height-6" width="width-2" height="5">
  165.         <color value="shade/gtk:bg[NORMAL]/0.85"/>
  166.         <color value="shade/gtk:bg[NORMAL]/0.5"/>
  167.     </gradient>
  168. </draw_ops>
  169.  
  170.  
  171. <!--
  172.     Buttons
  173. -->
  174. <!-- close button-->
  175. <draw_ops name="button_close_normal">
  176.     <image filename="button_close_normal.png" x="0" y="1" width="object_width" height="object_height"/>
  177. </draw_ops>
  178. <draw_ops name="button_close_prelight">
  179.     <image filename="button_close_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
  180. </draw_ops>
  181. <draw_ops name="button_close_inactive_prelight">
  182.     <image filename="button_close_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  183. </draw_ops>
  184. <draw_ops name="button_close_pressed">
  185.     <image filename="button_close_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
  186. </draw_ops>
  187. <draw_ops name="button_close_inactive">
  188.     <image filename="button_close_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  189. </draw_ops>
  190.  
  191. <!-- maximize button-->
  192. <draw_ops name="button_max_normal">
  193.     <image filename="button_max_normal.png" x="0" y="1" width="object_width" height="object_height"/>
  194. </draw_ops>
  195. <draw_ops name="button_max_prelight">
  196.     <image filename="button_max_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
  197. </draw_ops>
  198. <draw_ops name="button_max_inactive_prelight">
  199.     <image filename="button_max_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  200. </draw_ops>
  201. <draw_ops name="button_max_pressed">
  202.     <image filename="button_max_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
  203. </draw_ops>
  204. <draw_ops name="button_max_inactive">
  205.     <image filename="button_max_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  206. </draw_ops>
  207.  
  208. <!-- minimize button-->
  209. <draw_ops name="button_min_normal">
  210.     <image filename="button_min_normal.png" x="0" y="1" width="object_width" height="object_height"/>
  211. </draw_ops>
  212. <draw_ops name="button_min_prelight">
  213.     <image filename="button_min_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
  214. </draw_ops>
  215. <draw_ops name="button_min_inactive_prelight">
  216.     <image filename="button_min_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  217. </draw_ops>
  218. <draw_ops name="button_min_pressed">
  219.     <image filename="button_min_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
  220. </draw_ops>
  221. <draw_ops name="button_min_inactive">
  222.     <image filename="button_min_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
  223. </draw_ops>
  224.  
  225. <!-- menu button -->
  226. <!--
  227. <draw_ops name="button_menu_normal">
  228. <image filename="button_menu_normal.png" x="0" y="2" width="object_width" height="object_height"/>
  229. </draw_ops>
  230. <draw_ops name="button_menu_prelight">
  231. <image filename="button_menu_prelight.png" x="0" y="2" width="object_width" height="object_height"/>
  232. </draw_ops>
  233. <draw_ops name="button_menu_inactive_prelight">
  234. <image filename="button_menu_prelight.png" x="0" y="2" width="object_width" height="object_height" alpha="0.3"/>
  235. </draw_ops>
  236. <draw_ops name="button_menu_pressed">
  237. <image filename="button_menu_pressed.png" x="0" y="2" width="object_width" height="object_height"/>
  238. </draw_ops>
  239. <draw_ops name="button_menu_inactive">
  240. <image filename="button_menu_normal.png" x="0" y="2" width="object_width" height="object_height" alpha="0.3"/>
  241. </draw_ops>-->
  242.  
  243. <!-- menu icon -->
  244. <draw_ops name="button_menu_normal">
  245. <icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
  246. </draw_ops>
  247. <draw_ops name="button_menu_prelight">
  248. <icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
  249. </draw_ops>
  250. <draw_ops name="button_menu_inactive_prelight">
  251. <icon x="6" y="2" width="mini_icon_width" height="mini_icon_height" alpha="0.3"/>
  252. </draw_ops>
  253. <draw_ops name="button_menu_pressed">
  254. <icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
  255. </draw_ops>
  256. <draw_ops name="button_menu_inactive">
  257. <icon x="6" y="2" width="mini_icon_width" height="mini_icon_height" alpha="0.3"/>
  258. </draw_ops>
  259.  
  260.  
  261.  
  262. <!--
  263.     Frame styles
  264. -->
  265.  
  266. <!-- normal -->
  267. <frame_style name="frame_style_normal_focused" geometry="frame_geometry_normal">
  268.    <piece position="title" draw_ops="draw_title_text_normal"/>
  269.    <piece position="titlebar" draw_ops="draw_title"/>
  270.    <piece position="left_edge" draw_ops="draw_frame"/>
  271.    <piece position="right_edge" draw_ops="draw_frame"/>
  272.    <piece position="bottom_edge" draw_ops="bottom_edge"/>
  273.    <button function="close" state="normal" draw_ops="button_close_normal"/>
  274.    <button function="close" state="prelight" draw_ops="button_close_prelight"/>
  275.    <button function="close" state="pressed" draw_ops="button_close_pressed"/>
  276.    <button function="minimize" state="normal" draw_ops="button_min_normal"/>
  277.    <button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
  278.    <button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
  279.    <button function="maximize" state="normal" draw_ops="button_max_normal"/>
  280.    <button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
  281.    <button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
  282.    <button function="menu" state="normal" draw_ops="button_menu_normal"/>
  283.    <button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
  284.    <button function="menu" state="pressed" draw_ops="button_menu_pressed"/>
  285. </frame_style>
  286.  
  287. <frame_style name="frame_style_normal_unfocused" geometry="frame_geometry_normal">
  288.    <piece position="title" draw_ops="draw_title_text_inactive"/>
  289.    <piece position="titlebar" draw_ops="draw_title_inactive"/>
  290.    <piece position="left_edge" draw_ops="draw_frame"/>
  291.    <piece position="right_edge" draw_ops="draw_frame"/>
  292.    <piece position="bottom_edge" draw_ops="bottom_edge"/>
  293.    <button function="close" state="normal" draw_ops="button_close_inactive"/>
  294.    <button function="close" state="prelight" draw_ops="button_close_inactive_prelight"/>
  295.    <button function="close" state="pressed" draw_ops="button_close_inactive"/>
  296.    <button function="minimize" state="normal" draw_ops="button_min_inactive"/>
  297.    <button function="minimize" state="prelight" draw_ops="button_min_inactive_prelight"/>
  298.    <button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
  299.    <button function="maximize" state="normal" draw_ops="button_max_inactive"/>
  300.    <button function="maximize" state="prelight" draw_ops="button_max_inactive_prelight"/>
  301.    <button function="maximize" state="pressed" draw_ops="button_max_inactive"/>
  302.    <button function="menu" state="normal" draw_ops="button_menu_inactive"/>
  303.    <button function="menu" state="prelight" draw_ops="button_menu_inactive_prelight"/>
  304.    <button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
  305. </frame_style>
  306.  
  307. <frame_style name="frame_style_maximized_focused" geometry="frame_geometry_abnormal">
  308.    <piece position="title" draw_ops="draw_title_text_normal"/>
  309.    <piece position="titlebar" draw_ops="draw_title_maximized"/>
  310.    <piece position="left_edge" draw_ops="draw_frame"/>
  311.    <piece position="right_edge" draw_ops="draw_frame"/>
  312.    <piece position="bottom_edge" draw_ops="bottom_edge"/>
  313.    <button function="close" state="normal" draw_ops="button_close_normal"/>
  314.    <button function="close" state="prelight" draw_ops="button_close_prelight"/>
  315.    <button function="close" state="pressed" draw_ops="button_close_pressed"/>
  316.    <button function="minimize" state="normal" draw_ops="button_min_normal"/>
  317.    <button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
  318.    <button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
  319.    <button function="maximize" state="normal" draw_ops="button_max_normal"/>
  320.    <button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
  321.    <button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
  322.    <button function="menu" state="normal" draw_ops="button_menu_normal"/>
  323.    <button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
  324.    <button function="menu" state="pressed" draw_ops="button_menu_normal"/>
  325. </frame_style>
  326.  
  327. <frame_style name="frame_style_maximized_unfocused" geometry="frame_geometry_abnormal">
  328.    <piece position="title" draw_ops="draw_title_text_inactive"/>
  329.    <piece position="titlebar" draw_ops="draw_title_maximized_inactive"/>
  330.    <piece position="left_edge" draw_ops="draw_frame"/>
  331.    <piece position="right_edge" draw_ops="draw_frame"/>
  332.    <piece position="bottom_edge" draw_ops="bottom_edge"/>
  333.    <button function="close" state="normal" draw_ops="button_close_inactive"/>
  334.    <button function="close" state="prelight" draw_ops="button_close_prelight"/>
  335.    <button function="close" state="pressed" draw_ops="button_close_inactive"/>
  336.    <button function="minimize" state="normal" draw_ops="button_min_inactive"/>
  337.    <button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
  338.    <button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
  339.    <button function="maximize" state="normal" draw_ops="button_max_inactive"/>
  340.    <button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
  341.    <button function="maximize" state="pressed" draw_ops="button_max_inactive"/>
  342.    <button function="menu" state="normal" draw_ops="button_menu_inactive"/>
  343.    <button function="menu" state="prelight" draw_ops="button_menu_inactive"/>
  344.    <button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
  345. </frame_style>
  346.  
  347. <frame_style_set name="frame_style_set_normal">
  348.   <frame focus="yes" state="normal" resize="both" style="frame_style_normal_focused"/>
  349.   <frame focus="no" state="normal" resize="both" style="frame_style_normal_unfocused"/>
  350.   <frame focus="yes" state="maximized" style="frame_style_maximized_focused"/>
  351.   <frame focus="no" state="maximized" style="frame_style_maximized_unfocused"/>
  352.   <frame focus="yes" state="shaded" style="frame_style_normal_focused"/>
  353.   <frame focus="no" state="shaded" style="frame_style_normal_unfocused"/>
  354.   <frame focus="yes" state="maximized_and_shaded" style="frame_style_maximized_focused"/>
  355.   <frame focus="no" state="maximized_and_shaded" style="frame_style_maximized_unfocused"/>
  356. </frame_style_set>
  357.  
  358. <window type="normal" style_set="frame_style_set_normal"/>
  359. <window type="dialog" style_set="frame_style_set_normal"/>
  360. <window type="modal_dialog" style_set="frame_style_set_normal"/>
  361. <window type="menu" style_set="frame_style_set_normal"/>
  362. <window type="utility" style_set="frame_style_set_normal"/>
  363. <window type="border" style_set="frame_style_set_normal"/>
  364.  
  365. <menu_icon function="close" state="normal" draw_ops="button_close_normal"/>
  366. <menu_icon function="maximize" state="normal" draw_ops="button_max_normal"/>
  367. <menu_icon function="unmaximize" state="normal" draw_ops="button_max_normal"/>
  368. <menu_icon function="minimize" state="normal" draw_ops="button_min_normal"/>
  369.  
  370.  
  371. </metacity_theme>
  372.